package com.zhaozhaonews.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhaozhaonews.model.article.dto.ArticleDto;
import com.zhaozhaonews.model.article.dto.ArticleHomeDto;
import com.zhaozhaonews.model.article.entity.ApArticle;
import com.zhaozhaonews.model.common.dto.ResponseResult;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 服务类
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
public interface ApArticleService extends IService<ApArticle> {
    /**
     * 加载新闻
     * @return
     */
    List<ApArticle> load(Short loadType,ArticleHomeDto articleHomeDto);

    ResponseResult saveArticle(ArticleDto dto);
}
